import http from "@/utils/http";

export const getNetwork = () => {
  return http.get(`network/list/`)
}

export const updateNetwork = (data) => {
  console.log(data)
  return http.put("network/", data)
}

export const getWifi = () => {
  return http.get("network/wifi/list/")
}

export const connectWifi = (data) => {
  return http.post("network/wifi/connect/", data)
}

export const rescanWifi = () => {
  return http.post("network/wifi/rescan/")
}

export const reload = () => {
  return http.post("system/reloadArgs/")
}

export const reboot = () => {
  return http.post("system/reboot/")
}
